<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the color of the text field</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swftextfield.setbounds.html">SWFTextField::setBounds</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swftextfield.setfont.html">SWFTextField::setFont</a></div>
 <div class="up"><a href="class.swftextfield.html">SWFTextField</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="swftextfield.setcolor" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SWFTextField::setColor</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5)</p><p class="refpurpose"><span class="refname">SWFTextField::setColor</span> &mdash; <span class="dc-title">Sets the color of the text field</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-swftextfield.setcolor-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>SWFTextField::setColor</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$red</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$green</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$blue</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$a</code><span class="initializer"> = 255</span></span>
  ] )</div>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">此函数是<em class="emphasis">实验性</em>的。此函数的表象，包括名称及其相关文档都可能在未来的
PHP 发布版本中未通知就被修改。使用本函数风险自担 。</p></div>
  <p class="para">
   <span class="function"><strong>swftextfield::setcolor()</strong></span> sets the color of the text field. 
   Default is fully opaque black. Color is represented using RGB system.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-swftextfield.setcolor-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   These parameters are integers between 0 and 255 or hexadecimals between 
   <em>0x00</em> and <em>0xFF</em>:
   <dl>

    
     <dt>
<em><code class="parameter">red</code></em></dt>

     <dd>

      <p class="para">
       Value of red component
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">green</code></em></dt>

     <dd>

      <p class="para">
       Value of green component
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">blue</code></em></dt>

     <dd>

      <p class="para">
       Value of blue component
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">a</code></em></dt>

     <dd>

      <p class="para">
       Value of alpha component
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-swftextfield.setcolor-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="swftextfield.setbounds.html">SWFTextField::setBounds</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="swftextfield.setfont.html">SWFTextField::setFont</a></div>
 <div class="up"><a href="class.swftextfield.html">SWFTextField</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
